package com.alinesno.cloud.gateway.core.dispather.mina.bean;

import java.io.Serializable;

/**
 * 消息传递实体
 * 
 * @author WeiXiaoJin
 * @since 2019年9月21日 下午7:38:43
 */
@SuppressWarnings("serial")
public class MessageBean implements Serializable {

	// [业务](业务代码) --> [接入方](银行代码) --> [接口标识](接口代码) --> [业务标识](交易码) <br/>

	private String clientIp; // 服务ip
	private String clientPort; // 服务端口

	private String business; // 所属业务代码
	private String bank; // 银行代码
	private String api; // 所属接口
	private String transaction; // 交易代码

	private String magic = "0x80"; // 固定头部
	private String length; // 报文长度
	private String data; // 内容
	private int status; // 状态码

	public MessageBean() {
		super();
	}

	public MessageBean(int status, String message) {
		this.status = status;
		this.data = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMagic() {
		return magic;
	}

	public void setMagic(String magic) {
		this.magic = magic;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getApi() {
		return api;
	}

	public void setApi(String api) {
		this.api = api;
	}

	public String getTransaction() {
		return transaction;
	}

	public void setTransaction(String transaction) {
		this.transaction = transaction;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public String getClientPort() {
		return clientPort;
	}

	public void setClientPort(String clientPort) {
		this.clientPort = clientPort;
	}

}
